/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:01:24
 * Reconfigure default HMR behavior, now it clears your console on every
 * codebase update
 */
if (IS_DEV_SERVER) {
    if (module.hot) {
        module.hot.accept()
        module.hot.addStatusHandler(status => {
            if (status === 'prepare') console.clear()
        })
    }
}
